﻿//ApplicationEvent是自定义事件

package org.dm.events{

	import flash.events.Event;

	public class ApplicationEvent extends Event {

		public static const DOMAIN_DEFINE:String="defineDomain";

		public var defineClass:Array;
		public var defineName:String;

		public function ApplicationEvent(type:String,defineClass:Array,defineName:String) {
			super(type);
			this.defineClass = defineClass;
			this.defineName = defineName;
		}

		public override function toString():String {
			return formatToString("type","bubbles","cancelable","defineClass");
		}

		public override function clone():Event {
			return new ApplicationEvent(ApplicationEvent.DOMAIN_DEFINE,defineClass,defineName);
		}
	}
}